package com.data.entity.enums;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @datetime: 2019/7/ueditor 0002:8:56
 * @autohr: aiyls
 * @Description:
 **/
public enum OrderStatusEnum {
        WAIT_PAY(0,"待支付"),
        PAY(1,"已支付"),
        DELIVERY(2,"配送中"),
        FINISH(3,"已完成"),
        REFUND(4,"退款中"),
        CANCEL(5,"取消"),
        REFUND_FINISH(6,"退款完成");
        private int value;
        private String name;
        private OrderStatusEnum(int value, String name){
            this.value=value;
            this.name=name;
        }
        @JsonValue
        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
